/**
 * ping接口测试用例
 *
 * Created by snowingsea on 2020/01/22.
 */
const chai = require('chai');
const should = chai.should(); // eslint-disable-line no-unused-vars
chai.use(require('chai-http'));

const common = require('./../common');
const uri = require('./uri');

/**
 * Export model definition object.
 */
module.exports = describe('/GET ping.json', function () {
  const url = '/ping.json';

  // 正常请求
  it('it should GET ping', function (done) {
    chai.request(uri)
      .get(url)
      .end((err, res) => {
        res.should.have.status(200);
        common.should.be.pingMessage(res.body);
        done();
      });
  });
});
